#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent), ui(new Ui::MainWindow) {
    ui->setupUi(this);

}


void MainWindow::on_playBtn_clicked() {
    if (ui->playBtn->text() == "start") {
        ui->playBtn->setText("stop");
        ui->graphicsView->startTimer();
    } else {
        ui->playBtn->setText("start");
        ui->graphicsView->stopTimer();
    }
}

